package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AllorderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public AllorderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAllorderIdIsNull() {
            addCriterion("allorder_id is null");
            return (Criteria) this;
        }

        public Criteria andAllorderIdIsNotNull() {
            addCriterion("allorder_id is not null");
            return (Criteria) this;
        }

        public Criteria andAllorderIdEqualTo(Integer value) {
            addCriterion("allorder_id =", value, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdNotEqualTo(Integer value) {
            addCriterion("allorder_id <>", value, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdGreaterThan(Integer value) {
            addCriterion("allorder_id >", value, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("allorder_id >=", value, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdLessThan(Integer value) {
            addCriterion("allorder_id <", value, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdLessThanOrEqualTo(Integer value) {
            addCriterion("allorder_id <=", value, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdIn(List<Integer> values) {
            addCriterion("allorder_id in", values, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdNotIn(List<Integer> values) {
            addCriterion("allorder_id not in", values, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdBetween(Integer value1, Integer value2) {
            addCriterion("allorder_id between", value1, value2, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAllorderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("allorder_id not between", value1, value2, "allorderId");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceIsNull() {
            addCriterion("alltotalprice is null");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceIsNotNull() {
            addCriterion("alltotalprice is not null");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceEqualTo(Double value) {
            addCriterion("alltotalprice =", value, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceNotEqualTo(Double value) {
            addCriterion("alltotalprice <>", value, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceGreaterThan(Double value) {
            addCriterion("alltotalprice >", value, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("alltotalprice >=", value, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceLessThan(Double value) {
            addCriterion("alltotalprice <", value, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceLessThanOrEqualTo(Double value) {
            addCriterion("alltotalprice <=", value, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceIn(List<Double> values) {
            addCriterion("alltotalprice in", values, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceNotIn(List<Double> values) {
            addCriterion("alltotalprice not in", values, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceBetween(Double value1, Double value2) {
            addCriterion("alltotalprice between", value1, value2, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andAlltotalpriceNotBetween(Double value1, Double value2) {
            addCriterion("alltotalprice not between", value1, value2, "alltotalprice");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdIsNull() {
            addCriterion("user_address_id is null");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdIsNotNull() {
            addCriterion("user_address_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdEqualTo(Integer value) {
            addCriterion("user_address_id =", value, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdNotEqualTo(Integer value) {
            addCriterion("user_address_id <>", value, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdGreaterThan(Integer value) {
            addCriterion("user_address_id >", value, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_address_id >=", value, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdLessThan(Integer value) {
            addCriterion("user_address_id <", value, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_address_id <=", value, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdIn(List<Integer> values) {
            addCriterion("user_address_id in", values, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdNotIn(List<Integer> values) {
            addCriterion("user_address_id not in", values, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdBetween(Integer value1, Integer value2) {
            addCriterion("user_address_id between", value1, value2, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andUserAddressIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_address_id not between", value1, value2, "userAddressId");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeIsNull() {
            addCriterion("all_createtime is null");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeIsNotNull() {
            addCriterion("all_createtime is not null");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeEqualTo(Date value) {
            addCriterion("all_createtime =", value, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeNotEqualTo(Date value) {
            addCriterion("all_createtime <>", value, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeGreaterThan(Date value) {
            addCriterion("all_createtime >", value, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("all_createtime >=", value, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeLessThan(Date value) {
            addCriterion("all_createtime <", value, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("all_createtime <=", value, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeIn(List<Date> values) {
            addCriterion("all_createtime in", values, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeNotIn(List<Date> values) {
            addCriterion("all_createtime not in", values, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeBetween(Date value1, Date value2) {
            addCriterion("all_createtime between", value1, value2, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("all_createtime not between", value1, value2, "allCreatetime");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberIsNull() {
            addCriterion("allorder_number is null");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberIsNotNull() {
            addCriterion("allorder_number is not null");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberEqualTo(String value) {
            addCriterion("allorder_number =", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberNotEqualTo(String value) {
            addCriterion("allorder_number <>", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberGreaterThan(String value) {
            addCriterion("allorder_number >", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberGreaterThanOrEqualTo(String value) {
            addCriterion("allorder_number >=", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberLessThan(String value) {
            addCriterion("allorder_number <", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberLessThanOrEqualTo(String value) {
            addCriterion("allorder_number <=", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberLike(String value) {
            addCriterion("allorder_number like", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberNotLike(String value) {
            addCriterion("allorder_number not like", value, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberIn(List<String> values) {
            addCriterion("allorder_number in", values, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberNotIn(List<String> values) {
            addCriterion("allorder_number not in", values, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberBetween(String value1, String value2) {
            addCriterion("allorder_number between", value1, value2, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andAllorderNumberNotBetween(String value1, String value2) {
            addCriterion("allorder_number not between", value1, value2, "allorderNumber");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdIsNull() {
            addCriterion("user_cupon_id is null");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdIsNotNull() {
            addCriterion("user_cupon_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdEqualTo(Integer value) {
            addCriterion("user_cupon_id =", value, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdNotEqualTo(Integer value) {
            addCriterion("user_cupon_id <>", value, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdGreaterThan(Integer value) {
            addCriterion("user_cupon_id >", value, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_cupon_id >=", value, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdLessThan(Integer value) {
            addCriterion("user_cupon_id <", value, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_cupon_id <=", value, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdIn(List<Integer> values) {
            addCriterion("user_cupon_id in", values, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdNotIn(List<Integer> values) {
            addCriterion("user_cupon_id not in", values, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdBetween(Integer value1, Integer value2) {
            addCriterion("user_cupon_id between", value1, value2, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andUserCuponIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_cupon_id not between", value1, value2, "userCuponId");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceIsNull() {
            addCriterion("allorder_originalprice is null");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceIsNotNull() {
            addCriterion("allorder_originalprice is not null");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceEqualTo(Double value) {
            addCriterion("allorder_originalprice =", value, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceNotEqualTo(Double value) {
            addCriterion("allorder_originalprice <>", value, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceGreaterThan(Double value) {
            addCriterion("allorder_originalprice >", value, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("allorder_originalprice >=", value, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceLessThan(Double value) {
            addCriterion("allorder_originalprice <", value, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceLessThanOrEqualTo(Double value) {
            addCriterion("allorder_originalprice <=", value, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceIn(List<Double> values) {
            addCriterion("allorder_originalprice in", values, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceNotIn(List<Double> values) {
            addCriterion("allorder_originalprice not in", values, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceBetween(Double value1, Double value2) {
            addCriterion("allorder_originalprice between", value1, value2, "allorderOriginalprice");
            return (Criteria) this;
        }

        public Criteria andAllorderOriginalpriceNotBetween(Double value1, Double value2) {
            addCriterion("allorder_originalprice not between", value1, value2, "allorderOriginalprice");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}